package cn.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.domain.TbProduct;
import cn.domain.TbProductExample;
import cn.mapper.TbProductMapper;

@Service
public class TbProductServiceImp implements TbProductService {
	
	@Autowired
	TbProductMapper mapper;
	
	public int countByExample(TbProductExample example) {
		
		return mapper.countByExample(example);
	}

	
	public int deleteByExample(TbProductExample example) {
		
		return mapper.deleteByExample(example);
	}

	
	public int deleteByPrimaryKey(Integer id) {
		
		return mapper.deleteByPrimaryKey(id);
	}

	
	public int insert(TbProduct record) {
		
		return mapper.insert(record);
	}

	
	public int insertSelective(TbProduct record) {
		
		return mapper.insertSelective(record);
	}

	
	public List<TbProduct> selectByExample(TbProductExample example) {
		
		return mapper.selectByExample(example);
	}

	
	public TbProduct selectByPrimaryKey(Integer id) {
		
		return mapper.selectByPrimaryKey(id);
	}

	
	public int updateByExampleSelective(TbProduct record, TbProductExample example) {
		
		return mapper.updateByExampleSelective(record, example);
	}

	
	public int updateByExample(TbProduct record, TbProductExample example) {
		
		return mapper.updateByExample(record, example);
	}

	
	public int updateByPrimaryKeySelective(TbProduct record) {
		
		return mapper.updateByPrimaryKeySelective(record);
	}

	
	public int updateByPrimaryKey(TbProduct record) {
		
		return mapper.updateByPrimaryKey(record);
	}

}
